<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<body>
  <div th:fragment="config">
    <script type="text/javascript">
      // 请求获取版本信息
      var xmlhttp = new XMLHttpRequest();
      xmlhttp.open("GET", 'systeminfo/System_info.json?v=' + (new Date()).getTime(), false);
      xmlhttp.send(null);
      // 版本号
      var version = "";
      if (xmlhttp.responseText) {
        version = 'v=' + JSON.parse(xmlhttp.responseText).vstr;
      }
      xmlhttp = null;
      var require = {
        urlArgs: version,
        shim: {
          jquery: ['avalon'],
          polyfill: ['avalon'],
          mmRouter: ['avalon'],
          es5_sham: ['jquery'],
          Layer: ['jquery'],
          bootstrap: ['jquery'],
          loginApi: ['polyfill'],
          layPage: ['jquery'],
          fetch_detector: ['es6_promise'],
          fetch: ['fetch_detector'],
          xFetch: ['polyfill'],
          laydate: ['jquery'],
          billListActions: ['bus'],
          accountQueryActions: ['bus'],
          printThis: ['jquery'],
          socket: ['socketIO']
        },
        paths: {
          avalon: '../../common/avalon@2.1.17',
          mmRouter: '../../common/mmRouter',
          jquery: '../../common/jquery.min',
          socketIO: '../../common/socket.io.min',
          socket: '../utils/socket',
          es5_sham: '../../common/es5-sham.min',
          Layer: '../../common/layer/layer',
          text: '../../common/text',
          polyfill: '../utils/IEPolyfill',
          es6_promise: '../../common/fetch/es6-promise.min',
          fetch_detector: '../../common/fetch/fetch-detector',
          fetch: '../../common/fetch/fetch',
          js_cookie: '../../common/js.cookie',
          xFetch: '../services/xFetch',
          layPage: '../../common/laypage/laypage',
          tools: '../utils/tools',
          indexApi: '../services/indexApi',
          rootPath: '../utils/rootPath',
          BillList: '../index/bill/BillList',
          laydate: '../../common/laydate/laydate',
          laydatev5: '../../common/laydatev5/laydate',
          billListApi: '../services/billListApi',
          newBillApi: '../services/newBillApi',
          Condition: '../model/Condition',
          Conditions: '../model/Conditions',
          conditionsUtils: '../model/conditionsUtils',
          NewBill: '../index/bill/NewBill',
          GoodsSelectDialog: '../components/bill/GoodsSelectDialog',
          depsSelectDialog: '../components/bill/depsSelectDialog',
          batchDialog: '../components/bill/batchDialog',
          batchInfoDialog: '../components/bill/batchInfoDialog',
          GoodsQuery: '../index/bill/GoodsQuery',
          getApiConfig: '../index/bill/utils/getApiConfig',
          getVmConfig: '../index/bill/utils/getVmConfig',
          CommonBill: '../model/CommonBill',
          BillDetailDialog: '../components/bill/BillDetailDialog',
          stockSearch: '../index/report/stockSearch',
          stockSearchApi: '../services/stockSearchApi',
          chooseCondition: '../components/report/chooseCondition',
          booksApplyAnalyze: '../index/report/booksApplyAnalyze',
          booksApplyAnalyzeApi: '../services/booksApplyAnalyzeApi',
          cardManagerApi: '../services/cardManagerApi',
          CardManager: '../index/cardManager/CardManager',
          tableFixed: '../components/common/tableFixed',
          MoreSelectDialog: '../components/common/MoreSelectDialog',
          selectDialogApi: '../services/selectDialogApi',
          CardDetailInfo: '../components/cardManager/CardDetailInfo',
          CardBasic: '../model/CardBasic',
          RTStoreQuery: '../index/report/RTStoreQuery',
          rtstoreQueryApi: '../services/rtstoreQueryApi',
          RadioSelectDialog: '../components/common/RadioSelectDialog',
          buildBillInfo: '../index/bill/utils/buildBillInfo',
          ChangePassword: '../components/common/ChangePassword',
          bus: '../actions/bus',
          billListActions: '../actions/billList',
          AccountQuery: '../components/common/AccountQuery',
          accountQueryActions: '../actions/accountQuery',
          loginApi: '../services/loginApi',
          ly: '../components/print/bill_ly',
          printApi: '../services/printApi',
          qs: '../../common/qs',
          printThis: '../../common/printThis',
          bootstrap: '../../common/bootstrap.min',
          ygsqApi: '../services/ygsqApi',
          Ygsq: '../index/bill/Ygsq',
          NewSunBill: '../index/bill/NewSunBill',
          GoodsSunSelectDialog: '../components/bill/GoodsSunSelectDialog'
        }
      };
    </script>
  </div>
</body>

</html>